<div class="primary" style="margin-top: 10px;">
   <div class="wrap">
      <div class="wrap_primary">
         <div class="home_content">
            <div class="home_nav">
               <ul>
                  <li class="nav_phone">
                     <a href="<?=url_phone_cat()?>">
                        <i class="icon_phone"></i>
                        <h3>Điện thoại di động</h3>
                     </a>
                  </li>
                  <li class="nav_tablet">
                     <a href="<?=url_tablet_cat()?>">
                        <i class="icon_tablet"></i>
                        <h3>Máy tính bảng</h3>
                     </a>
                  </li>
                  <li class="nav_accessories">
                     <a href="<?=url_accessories_cat()?>">
                        <i class="icon_accessories"></i>
                        <h3>Phụ kiện</h3>
                     </a>
                  </li>
                  <li class="nav_services">
                     <a href="<?=url_services_cat()?>">
                        <i class="icon_services"></i>
                        <h3>Dịch vụ sửa chữa</h3>
                     </a>
                  </li>
               </ul>
            </div>
            <div class="home_list">
               <ul class="listnews">
               <?php
               foreach($news_cat as $news) {
                  ?>
                  <li>
                     <a title="<?=$news['new_title']?>" href="<?=url_news_detail($news['new_alias'])?>"><h3><?=$news['new_title']?></h3></a>
                     <a class="userpost" style="padding-right:5px" href="#">Admin,</a><span class="time" title="<?=date('d/m/Y - h:ia',$news['new_date'])?>"> <?=getTodayYesterdayString($news['new_date'])?></span>
                     <a href="<?=url_news_detail($news['new_alias'])?>"><img width="640" class="titleimg" src="<?=$news['new_image']?>" alt="<?=$news['new_title']?>" />
                     </a>
                     <p style="clear:both"></p>
                     <p><?=cut_string(removeHTML($news['new_detail']),500)?></p>&nbsp;
                     <p></p>
                     <!--<span class="newscomment"><strong><i class="ico-newscomm"></i>153</strong> bình luận</span>-->
                     <a class="newsmore" title="Xem chi tiết" href="<?=url_news_detail($news['new_alias'])?>">Xem chi tiết</a>
                  </li>
                  <?
               }
               ?>
               </ul>
            </div>
               <?=paging($page,$page_size,$total_news,'/tin-tuc/trang-','/')?>
         </div>
         <?php include ROOT.'/home/view/view_sidebar_home.php'?>
      </div>
   </div>
</div>